package com.songlanyun.modules.marketing.firstorder.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 首单活动
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 16:29:49
 */
@Data
@TableName("yxt_marketing_first_order_activity")
public class FirstOrderActivity extends RootEntity<Long, FirstOrderActivity> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 是否启用
     * 0：禁用
     * 1：启用
     */
    private Boolean isUse;
    /**
     * 满
     */
    private BigDecimal full;
    /**
     * 减
     */
    private BigDecimal reduction;
    /**
     * 商家id
     */
    private Long shopId;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

	@Override
	public Long getIdentity() {
		return id;
	}
}
